<template>
	<view class="silde">
		  <input type="text" v-model="value" placeholder="请输入钱包地址" />
		  <button size="default" type="primary" @click="modify">确认</button>
	</view>
</template>

<script>
	import api from '../../common/api.js'
	export default {
		data() {
			return {
				value: ''
			}
		},
		onLoad(op) {
			this.value = op.Walletaddresss
			console.log(op, 9090)
		},
		methods: {
			change() {},
			modify() {
				if(!this.value) return
				this.$api.sendRequest({
					url: api.USER_profile,
					data: {
						walletaddresss: this.value
					},
					success: res => {
						uni.showToast({
							icon: 'none',
							title: res.msg
						})
					}
				});
			}
		}
	}
</script>
<style>
	page {
		background: #F3F3F3;
	}
</style>
<style scoped>
	.silde {
		padding: 30rpx;
	}
	input {
		height: 94rpx;
		background: #FFFFFF;
		box-shadow: 0px 4rpx 20rpx rgba(0, 0, 0, 0.06);
		padding-left: 54rpx;
	}
	button {
		position: fixed;
		width: calc(100% - 60rpx);
		bottom: 40rpx;
	}
</style>
